from django.urls import path

from course import views
from rest_framework.routers import SimpleRouter
router = SimpleRouter()
router.register("search",views.Search,basename="sea")

urlpatterns=[
    path('homecate/',views.HomeCate.as_view()),
    path('homechild/',views.Child.as_view()),
    path('parent/',views.ParentCate.as_view()),
    path('child/',views.VParentCate.as_view()),
    path('list/',views.CourseList.as_view()),
    path('hot/',views.SearchHistory.as_view()),
    path('detail/',views.Detail.as_view()),
]
urlpatterns+=router.urls